Optimal. Leaf size=63 \[ \frac{\tan (c+d x)}{a^4 d}+\frac{4 i}{d \left (a^4+i a^4 \tan (c+d x)\right )}-\frac{4 i \log (\cos (c+d x))}{a^4 d}-\frac{4 x}{a^4} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.053086, antiderivative size = 63, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.083, Rules used = {3487, 43} \[ \frac{\tan (c+d x)}{a^4 d}+\frac{4 i}{d \left (a^4+i a^4 \tan (c+d x)\right )}-\frac{4 i \log (\cos (c+d x))}{a^4 d}-\frac{4 x}{a^4} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3487
Rule 43
Rubi steps
\begin{align*} \int \frac{\sec ^6(c+d x)}{(a+i a \tan (c+d x))^4} \, dx &=-\frac{i \operatorname{Subst}\left (\int \frac{(a-x)^2}{(a+x)^2} \, dx,x,i a \tan (c+d x)\right )}{a^5 d}\\ &=-\frac{i \operatorname{Subst}\left (\int \left (1+\frac{4 a^2}{(a+x)^2}-\frac{4 a}{a+x}\right ) \, dx,x,i a \tan (c+d x)\right )}{a^5 d}\\ &=-\frac{4 x}{a^4}-\frac{4 i \log (\cos (c+d x))}{a^4 d}+\frac{\tan (c+d x)}{a^4 d}+\frac{4 i}{d \left (a^4+i a^4 \tan (c+d x)\right )}\\ \end{align*}
Mathematica [B] time = 0.571658, size = 214, normalized size = 3.4 \[ \frac{\sec (c) \sec (c+d x) (-\cos (c+d x)+i \sin (c+d x)) (2 i d x \sin (c+2 d x)-2 \sin (c+2 d x)+2 i d x \sin (3 c+2 d x)-\sin (3 c+2 d x)+2 d x \cos (3 c+2 d x)-i \cos (3 c+2 d x)+2 i \cos (3 c+2 d x) \log (\cos (c+d x))+2 \cos (c+2 d x) (d x+i \log (\cos (c+d x)))+\cos (c) (4 i \log (\cos (c+d x))+4 d x-3 i)-2 \sin (c+2 d x) \log (\cos (c+d x))-2 \sin (3 c+2 d x) \log (\cos (c+d x))+\sin (c))}{2 a^4 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.073, size = 53, normalized size = 0.8 \begin{align*}{\frac{\tan \left ( dx+c \right ) }{{a}^{4}d}}+4\,{\frac{1}{{a}^{4}d \left ( \tan \left ( dx+c \right ) -i \right ) }}+{\frac{4\,i\ln \left ( \tan \left ( dx+c \right ) -i \right ) }{{a}^{4}d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.997645, size = 130, normalized size = 2.06 \begin{align*} \frac{\frac{12 \,{\left (\tan \left (d x + c\right )^{2} - 2 i \, \tan \left (d x + c\right ) - 1\right )}}{3 \, a^{4} \tan \left (d x + c\right )^{3} - 9 i \, a^{4} \tan \left (d x + c\right )^{2} - 9 \, a^{4} \tan \left (d x + c\right ) + 3 i \, a^{4}} + \frac{4 i \, \log \left (i \, \tan \left (d x + c\right ) + 1\right )}{a^{4}} + \frac{\tan \left (d x + c\right )}{a^{4}}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.42734, size = 286, normalized size = 4.54 \begin{align*} -\frac{8 \, d x e^{\left (4 i \, d x + 4 i \, c\right )} +{\left (8 \, d x - 4 i\right )} e^{\left (2 i \, d x + 2 i \, c\right )} -{\left (-4 i \, e^{\left (4 i \, d x + 4 i \, c\right )} - 4 i \, e^{\left (2 i \, d x + 2 i \, c\right )}\right )} \log \left (e^{\left (2 i \, d x + 2 i \, c\right )} + 1\right ) - 2 i}{a^{4} d e^{\left (4 i \, d x + 4 i \, c\right )} + a^{4} d e^{\left (2 i \, d x + 2 i \, c\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: AttributeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.19539, size = 198, normalized size = 3.14 \begin{align*} \frac{2 \,{\left (\frac{4 i \, \log \left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - i\right )}{a^{4}} - \frac{2 i \, \log \left ({\left | \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 1 \right |}\right )}{a^{4}} - \frac{2 i \, \log \left ({\left | \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - 1 \right |}\right )}{a^{4}} + \frac{2 i \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - 2 i}{{\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - 1\right )} a^{4}} + \frac{-6 i \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - 16 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 6 i}{a^{4}{\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - i\right )}^{2}}\right )}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]